package xin.mashibo.pattern.chainofresponsibility;

/**
 * 解决奇数编号的问题
 *
 * @author MaShibo
 * 日期 :  2019/1/24
 */
public class OddSupport extends Support {


    public OddSupport(String name) {
        super(name);
    }

    @Override
    protected boolean resolve(Trouble trouble) {
        return trouble.getNumber() % 2 == 1;
    }
}
